package cate.common.table.pvp.teampvp.sheet;

import cate.common.table.ESheet;
import cate.common.table.pvp.teampvp.row.TeamPvpGradeRow;

public class TeamPvpGradeSheet extends ESheet<TeamPvpGradeRow> {
    @Override
    public String getSheetName() {
        return "段位积分";
    }

    public TeamPvpGradeRow findRow(long score) {
        TeamPvpGradeRow row = null;
        for (TeamPvpGradeRow gradeRow : getList()) {
            if (gradeRow.minScore > score) {
                return row;
            }
            row = gradeRow;
        }
        return row;
    }
}
